package com.menggudf.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Table(name="bmiRecord")
@Entity
public class BMIrecord implements Serializable{

    /**
     * 
     */
    private static final long serialVersionUID = -7702884182154362796L;
    
    private int  id; 
    private double  bodyWeight;
    private double  height;
    private String  userCode;
    private String  roleCode; 
    private Date  createdTime;
    
    @Id
    @Column(name="id",unique=true,nullable=false)
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    
    @Column(name="bodyWeight")
    public double getBodyWeight() {
        return bodyWeight;
    }
    public void setBodyWeight(double bodyWeight) {
        this.bodyWeight = bodyWeight;
    }
    
    @Column(name="height")
    public double getHeight() {
        return height;
    }
    public void setHeight(double height) {
        this.height = height;
    }
    
    @Column(name="userCode")
    public String getUserCode() {
        return userCode;
    }
    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }
    
    @Column(name="roleCode")
    public String getRoleCode() {
        return roleCode;
    }
    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }
    
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "createdTime", length = 19)
    public Date getCreatedTime() {
        return createdTime;
    }
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }
    
}
